/*
 * Main.fx
 *
 * Created on 27-nov-2009, 9:36:47
 */

package javafxarnestockmans;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;

/**
 * @author arne
 */

var media:MyMediaComponent = MyMediaComponent {
    mediaURL : "http://localhost/1460825906_2956241001_big-buck-bunny-640x360.flv";
}


Stage {
    title: "JavaFX";
    width: 500
    height: 350
    scene: Scene {
        content: [
            media,
            
            Text {
                font : Font {
                    size : 16
                }
                x: 10
                y: 300
                content: bind media.progress.toSeconds().intValue().toString();
            }
        ]
    }
}